package org.pure.test.service;

import org.pure.ioc.IocContainer;
import org.pure.ioc.annotation.Bean;
import org.pure.ioc.annotation.Inject;
import org.pure.test.service.impl.HelloService;

/**
 * Created by will.lin on 2015/8/10.
 */
@Bean
public class Main {

    @Inject(HelloService.class)
    private static IHelloSerivce helloSerivce;

    public static void main(String[] args) throws IllegalAccessException {
        IocContainer.init();
        String str=   helloSerivce.hello("林洋");
        System.out.println(str);
    }
}
